package com.wow.wa.ui;

import com.wow.wa.uicommon.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class TextDialog extends BaseDialog {

	private Button btn;
	private CategoryBtn categoryBtn;
	private Context ct;

	public TextDialog(String titleName, Context context, final Button btn) {
		super(titleName, context);
		this.btn = btn;
		this.ct = context;
		// final EditText textView = (EditText) this.getView();
		// textView.setOnClickListener(new OnClickListener() {
		//
		// @Override
		// public void onClick(View v) {
		// btn.setText(textView.getText());
		//
		// }
		// });
		// TODO Auto-generated constructor stub
	}

	public TextDialog(String titleName, Context context, final CategoryBtn btn,
			int inputType) {
		super(titleName, context, btn, inputType);
		this.categoryBtn = btn;
	}

	public void setText(String text) {

		View view = this.getView();

		final EditText editText = (EditText) view.findViewById(R.id.editText);
		editText.setText(text);
	}

	@Override
	public String getTitle() {
		// TODO Auto-generated method stub
		return null;
	}

}
